package cn.oop.inherit;

import java.util.Scanner;

public class Hello {
    public static void main(String[] args) {
        System.out.println("hello world!");
        Scanner input = new Scanner(System.in);
        System.out.print("请输入英尺数：");
        double foot = input.nextDouble();
        System.out.print("请输入英寸数：");
        double inch = input.nextDouble();
        int height = (int) ((foot + inch / 12) * 0.3048 * 100);
        System.out.println("身高是:" + height + "厘米");
    }
}
